﻿using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;

namespace Zeus.Mvc.ConsoleHost.Test
{
    class Program
    {
        static void Main(string[] args)
        {
            WebHost.CreateDefaultBuilder()

                 //.ConfigureLogging(LoggingBuilder =>
                 //{
                 //    LoggingBuilder.AddFilter((logLevel) =>
                 //    {
                 //        if (basicSettingsConfigurationProvider.EnvironmentName == EnvironmentName.Development)
                 //        {
                 //            return true;
                 //        }

                 //        if (logLevel >= LogLevel.Error)
                 //        {
                 //            return true;
                 //        }
                 //        return false;
                 //    });
                 //})
                 .UseUrls("http://localhost:5000")
                 .UseStartup<Startup>()
                 .UseKestrel()
                 .Build()
                 .Run();
        }
    }
}
